package com.sunxu.ibog.domain;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

/**
 * @author 孙许
 * @date 2018-05-30
 * @description
 */
@Data
@Document(indexName = "blog", type = "blog")
public class EsBlog implements Serializable {
    private static final long serialVersionUID = -3687352122353943523L;

    @Id
    private String id;
    private String title;
    private String summary;
    private String content;

    protected EsBlog() {

    }

    public EsBlog(String title, String summary, String content) {
        this.title = title;
        this.summary = summary;
        this.content = content;
    }
}
